import { get, post, del } from '@/utils/request.js'

/**
 * 最近10个历史搜索词
 */
export const searchRecordApi = () => {
	return get('/searchRecord/list')
}

/**
 * 搜索
 */
export const searchApi = (data) => {
	return post('/searchRecord/search', data)
}

/**
 * 删除历史搜索词
 */
export const searchRecordDeleteApi = () => {
	return del('/searchRecord/delete')
}
